# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-curses-ui-poe
pkgver=0.04
pkgrel=6
pkgdesc="Perl/CPAN Module Curses::UI::POE : A subclass that forces CursesUI to use POE"
arch=(any)
url="https://search.cpan.org/dist/Curses-UI-POE"
license=("GPL" "PerlArtistic")
makedepends=("perl-curses-ui" "perl-poe")
depends=("perl-curses-ui" "perl-poe")
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/T/TA/TAG/Curses-UI-POE-$pkgver.tar.gz")
sha256sums=('82239b6b653a2d62684f85e57b7b04112fe3b432c519f16096b5e0a7b9f0fdb6')

build() {
  cd "$srcdir"/Curses-UI-POE-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Curses-UI-POE-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
